package com.git.demo.service.impl;

import com.git.demo.bean.*;
import com.git.demo.mapper.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestServiceimpl implements TestService{
    @Autowired
    private AgeMapper ageMapper;
    @Autowired
    private ProvinceMapper provinceMapper;
    @Autowired
    private GenderMapper genderMapper;
    @Autowired
    private TopMapper topMapper;
    @Autowired
    private AgeCountMapper ageCountMapper;





    @Override
    public List<AgeRange> getALLAgeRange() {
        List<AgeRange> ageRanges = ageMapper.getALL();
        return ageRanges;
    }

    @Override
    public List<Province> getALLProvince() {
        List<Province> provinces = provinceMapper.getALL();
        return provinces;
    }

    @Override
    public List<Gender> getALLGender() {
        List<Gender> genders = genderMapper.getALL();
        return genders;
    }

    @Override
    public List<Top> getALLTop() {
        List<Top> tops = topMapper.getALL();
        return tops;
    }

    @Override
    public List<AgeCount> getALLCount() {
        List<AgeCount> ageCounts =ageCountMapper.getALL();
        return ageCounts;
    }
}
